package com.coincalf.wallet.service;

import com.baomidou.mybatisplus.service.IService;
import com.coincalf.wallet.entity.CoinRecharge;
import com.coincalf.wallet.entity.CollectCoinRecord;

import java.util.List;

public interface CollectCoinRecordService extends IService<CollectCoinRecord> {

    //ETH归集
    public String collectEth(CoinRecharge c);

    //BTC归集
    public String collectBtc(CoinRecharge c);

    //USDT_ERC20归集
    public void collectUsdtErc20(List<CoinRecharge> coinRecharges);

    //USDT_OMNI归集
    public String collectUsdtOmni(CoinRecharge coinRecharge);

    List<CollectCoinRecord> findAllByCoinNameAndTxStatus(String coinName, Integer txStatus);

    public int updateTxStatus(Long id, Integer txStatus);

}
